﻿using System;
using System.Collections.Generic;
using RentalSystem.Data.EF.Core;

namespace RentalSystem.Data.EF.Dao
{
    public class EFAgencyTypesDao : IAgencyTypesDao
    {
        #region Queries

        private static readonly string GetQuery;

        #endregion

        private EFManager<AgencyTypes> manager;

        public EFAgencyTypesDao(RentalDatabaseEntities repository)
        {
            this.manager = new EFManager<AgencyTypes>(repository);
        }

        #region IDao1Key

        public AgencyTypes Add(AgencyTypes entity)
        {
            manager.Database.AddToAgencyTypes(entity);
            manager.Save();
            return entity;
        }

        public AgencyTypes Get(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public void Delete(AgencyTypes entity)
        {
            throw new NotImplementedException();
        }

        public void Update(AgencyTypes entity, uint fields)
        {
            throw new NotImplementedException();
        }

        public List<AgencyTypes> List()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
